﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class HappyBirthday : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        bussiness bus = new bussiness();
        List<Ecard> lstEcard = bus.getAllEcard();
        List<Ecard> lstEcard_hpbd = new List<Ecard>();
        foreach(Ecard ecard in lstEcard)
        {
            if(ecard.TypeId == 1)
            {
                lstEcard_hpbd.Add(ecard);
            }
        }
        Repeater1.DataSource = lstEcard_hpbd;
        Repeater1.DataBind();
    }
}